﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TVGuide.DataAccess.Common
{
    public class Language
    {
        #region Public Properties

        public short Id { get; set; }
        public String Name { get; set; }

        #endregion

        public Language() { }

        #region Explicit Cast

        public static explicit operator language(Language l)
        {
            if (l == null)
                return null;
            language country = new language();
            country.languageID = l.Id;
            country.languageName = l.Name;
            return country;
        }

        public static explicit operator Language(language l)
        {
            if (l == null)
                return null;
            Language country = new Language();
            country.Id = l.languageID;
            country.Name = l.languageName;
            return country;
        }

        #endregion
    }
}
